package demo.restful2;

import javax.xml.bind.annotation.XmlRootElement;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: jinshengyuan
 * Date: 2019-02-22
 * Time: 14:43
 * description:
 **/
@XmlRootElement(name = "Room")
public class Room {
    public Room(){
        persons = new HashMap<>();
    }
    String id;
    Map<String,Person> persons;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Map<String, Person> getPersons() {
        return persons;
    }

    public void setPersons(Map<String, Person> persons) {
        this.persons = persons;
    }
}
